
public class tester {
	
	public static void main (String[] args){
		linkedList  testList = new linkedList();
		node n1 = testList.addToHead(new Integer (5));
		node n2 = testList.addToHead(new Integer (6));
		node n3 =testList.addToHead(new Integer (7));
		node n4 =testList.addToHead(new Integer (8));
		node n5 =testList.addToHead(new Integer (9));
		System.out.println("The size is"+testList.size());
		System.out.println(testList.removeNode(n4));
		System.out.println(testList.removeNode(n2));
		System.out.println(testList.removeNode(n1));
		System.out.println(testList.removeNode(n5));
		System.out.println(testList.removeNode(n3));

		System.out.println("The size is"+testList.size());
		
		testList.addToHead(new Integer (8));
		testList.addToHead(new Integer (7));
		testList.addToHead(new Integer (5));
		testList.addToHead(new Integer (2));
		System.out.println("The size is"+testList.size());
		System.out.println(testList.removeTail());
		System.out.println(testList.removeTail());
		System.out.println(testList.removeTail());
		System.out.println(testList.removeTail());
		System.out.println(testList.removeTail());
		System.out.println("The size is"+testList.size());
		
		
		
		
	}

}
